{extend name="Public:base"/}

{block name="main"}
<div class="box-info">
    <form id="myform" action="{:U('Index/profile')}" method="post">
        <div class="form-group row">
            <label class="col-2 form-control-label">用户名</label>
            <div class="col-4">
                <input type="text" class="form-control" name="username" value="{$user.username}" >
            </div>
        </div>
        <div class="form-group row">
            <label class="col-2 form-control-label">密码</label>
            <div class="col-4">
                <input type="password" name="password" class="form-control" />
            </div>
        </div>
        <div class="form-group row">
            <label class="col-2 form-control-label">确认密码</label>
            <div class="col-4">
                <input type="password" name="repassword" class="form-control" />
            </div>
        </div>
        <div class="form-group row">
            <label class="col-2 form-control-label">邮箱</label>
            <div class="col-4">
                <input type="text" class="form-control"  name="email" value="{$user.email}" >
            </div>
        </div>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary ajax_form_edit">提交</button>
        </div>
    </form>
</div>
{/block}